package pattern.builder;

import java.util.List;

/**
 * @description 创造者模式
 * @author fg
 * @date 2017年8月22日
 */
public class DoMain {
	public static void main(String[] args) {
		Builder builder = new Builder();
		builder.produceMailSender(10);
		builder.produceSmsSender(10);
		
		List<Sender> list = builder.getSenderList();
		list.forEach(sender -> sender.send());
	}
}
